﻿@model ECGadmin.WebUI.Models.DiscountRequirement.HasSpentAmount
<tr id="has-spent-amount">
    <td class="tInfoLeft">Nhập Id sản phẩm và số lượng</td>
    <td class="tInfoRight">
        @using (Ajax.BeginForm("AjaxHtmlInputAmountProduct", "Discount", null, new AjaxOptions
        {
                                                     OnBegin = "ShowLoading",
                                                     OnComplete = "HideLoading",
                                                     OnSuccess = "AjaxResultInputAmountProduct"
                                                 })) {
            @Html.TextBoxFor(m => m.Quantity) <input type="submit" value="Save"/>
            <div>
                @Html.ValidationMessageFor(m => m.Quantity )
            </div>
            @Html.Hidden("DiscountRequirementRuleSystemName", (string)ViewBag.SystemRuleName )
            <input type="hidden" name="DiscountId" value="@ViewBag.DiscountId"/>
        }
        <script src="~/Scripts/jquery.validate.min.js"></script> 
        <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
    </td>
</tr>
